<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>TextBox</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">TextBox</p>
<hr class="separator">
<div class="content">
The TextBox class represents text boxes. It is a subclass of <a href="Box.htm">Box</a>.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="TextBox.setText.htm">setText</a></td><td>(Self)</td><td>Sets the text to be shown in the text box.</td></tr><tr><td><a href="TextBox.setFontStyle.htm">setFontStyle</a></td><td>(Self)</td><td>Sets the font of the text by specifying the file that contains the font.</td></tr><tr><td><a href="TextBox.setFontSize.htm">setFontSize</a></td><td>(Self)</td><td>Sets the font height and width in points.</td></tr><tr><td><a href="TextBox.setFontAngle.htm">setFontAngle</a></td><td>(Self)</td><td>Sets the rotation angle and layout direction of the text.</td></tr><tr><td><a href="TextBox.setFontColor.htm">setFontColor</a></td><td>(Self)</td><td>Sets the color of the text.</td></tr><tr><td><a href="TextBox.setAlignment.htm">setAlignment</a></td><td>(Self)</td><td>Sets the alignment of the text relative to the container box.</td></tr><tr><td><a href="TextBox.setWidth.htm">setWidth</a></td><td>(Self)</td><td>Sets the width of the text box and wraps text if necessary.</td></tr><tr><td><a href="TextBox.setHeight.htm">setHeight</a></td><td>(Self)</td><td>Sets the height of the text box.</td></tr><tr><td><a href="TextBox.setMaxWidth.htm">setMaxWidth</a></td><td>(Self)</td><td>Sets the maximum width of the text box and wraps text if necessary.</td></tr><tr><td><a href="TextBox.setTruncate.htm">setTruncate</a></td><td>(Self)</td><td>Sets the maximum number of lines in the text box, and truncate the text if it exceeds the line count.</td></tr><tr><td><a href="TextBox.setMargin.htm">setMargin</a></td><td>(Self)</td><td>Sets all margins (left, right, top, and bottom) of the text box to the same value.</td></tr><tr><td><a href="TextBox.setMargin2.htm">setMargin2</a></td><td>(Self)</td><td>Sets the margins of the text box.</td></tr><tr><td><a href="Box.setPos.htm">setPos</a></td><td>Box</td><td>Sets the coordinates of the reference point of the box, which by default is the top-left corner of the box.</td></tr><tr><td><a href="Box.setSize.htm">setSize</a></td><td>Box</td><td>Sets the width and height of the box.</td></tr><tr><td><a href="Box.setBackground.htm">setBackground</a></td><td>Box</td><td>Sets the background color, border color and 3D border effect of the box.</td></tr><tr><td><a href="Box.setRoundedCorners.htm">setRoundedCorners</a></td><td>Box</td><td>Sets the border style to use rounded corners.</td></tr><tr><td><a href="Box.getLeftX.htm">getLeftX</a></td><td>Box</td><td>Gets the left x pixel coordinate of the box.</td></tr><tr><td><a href="Box.getTopY.htm">getTopY</a></td><td>Box</td><td>Gets the top y pixel coordinate of the box.</td></tr><tr><td><a href="Box.getWidth.htm">getWidth</a></td><td>Box</td><td>Gets the width of the box.</td></tr><tr><td><a href="Box.getHeight.htm">getHeight</a></td><td>Box</td><td>Gets the height of the box.</td></tr><tr><td><a href="Box.getImageCoor.htm">getImageCoor</a></td><td>Box</td><td>Gets the image map coordinates of the box as HTML image map attributes.</td></tr><tr><td><a href="Box.setZOrder.htm">setZOrder</a></td><td>Box</td><td>Sets the z-order (drawing order) for custom box objects.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
